#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int main()
{
    char c1,c2;
    double t,d,h,e;
    while(cin>>c1)
    {
        if(c1=='E')  break;
        cin>>t>>c2>>d;
        e = 6.11 * exp (5417.7530 * ((1/273.16) - (1/(d+273.16))));
        h = (0.5555)*(e - 10.0);
        h = t + h;
        cout<<setiosflags(ios::fixed)<<setprecision(1);
        cout<<c1<<" "<<t<<" "<<c2<<" "<<d<<" "<<"H"<<" "<<h<<endl;
        }
      system("pause");
      return 0;
}
        
                  
                  
                  
                  
                  
                  
                  
                  
                  
                  
